package org.playground.booking.dao;

import org.playground.booking.entity.PlaygrounEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by root on 17-10-28.
 */
public interface IDao<T extends PlaygrounEntity,K> {

    List<T> readAll();
    List<T> readByCreterias(String hql,Map<String,Object> params);
    T readById(K id);

    void update(T toUpdate);

    void delete(T toDelete);

    void save(T toSave);



}
